package com.market.controller.wx;

import com.market.bean.common.BaseRespVo;
import com.market.bean.vo.wx.WxHomeVo;
import com.market.service.wx.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fan
 * @Description:
 * @since 2023/01/02 21:41
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeController {
    @Autowired
    WxHomeService homeService;

    @GetMapping("index")
    public BaseRespVo<WxHomeVo> index() {
        WxHomeVo data = homeService.index();
        return BaseRespVo.ok(data);
    }
}
